import request from '../utils/request'
export let get_list=()=>{
    return (dispatch)=>{
        request.get('/list').then(res=>(
            dispatch({
            type:'GET_LIST',
            payload:res.data.list
        })
        ))
        
    }
}
export let set_v=(v)=>{
    return {
            type:'SET_V',
            payload:v
    }
}
export let check_childrenData = (index) =>{
    return {
        type:"CHECK_CHILDRENDATA",
        payload:index
    }
}